import util from "../../util";
import parentModel from '../parent/parentModel';

export default class statisticsModel extends parentModel{
    constructor(path) {
        super(statisticsModel, util.api.StatisticsConfiguration);
    }
    static create(record, path){
        let object=new statisticsModel(path);
        if(!!record){
            object.setRecord(record);
        };
        return object;
    }
    /**
     * 新增模板
     * @returns {}
     */
    static tpl(){
        return {
            // id: "",
            type: "statistics",
            className:"",
            version: "1.0",
            published: true,
            properties: [],
            statusProperties: [],
            comments: "",
        }
    }
}
